/***
 * * PROJECT
 * *    Logical Neighborhood Routing
 * * VERSION
 * *    $Revision: 1.3 $
 * * DATE
 * *    $Date: 2006/12/14 22:26:37 $
 * * LOG
 * *    $Log: NeighborhoodMessage.java,v $
 * *    Revision 1.3  2006/12/14 22:26:37  lmottola
 * *    LNScope becomes an interface that includes matches().
 * *
 * *    Revision 1.2  2006/10/24 01:00:18  lmottola
 * *    SSD routing in place.
 * *
 * *    Revision 1.1  2006/10/20 23:54:13  lmottola
 * *    Initial LN code in.
 * *
 * *
 * *   Logical Neighborhoods Routing - Java Version
 * *                                
 * *
 * *   This program is free software; you can redistribute it and/or
 * *   modify it under the terms of the GNU General Public License
 * *   as published by the Free Software Foundation; either version 2
 * *   of the License, or (at your option) any later version.
 * *
 * *   This program is distributed in the hope that it will be useful,
 * *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * *   GNU General Public License for more details.
 * *
 * *   You should have received a copy of the GNU General Public License
 * *   along with this program; if not, you may find a copy at the FSF web
 * *   site at 'www.gnu.org' or 'www.fsf.org', or you may write to the
 * *   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * *   Boston, MA  02111-1307, USA
 ***/

package atag.runtime.ln.messages;

/***
 * * PROJECT
 * *    Logical Neighborhood Routing
 * * VERSION
 * *    $Revision: 1.3 $
 * * DATE
 * *    $Date: 2006/12/14 22:26:37 $
 * * LOG
 * *    $Log: NeighborhoodMessage.java,v $
 * *    Revision 1.3  2006/12/14 22:26:37  lmottola
 * *    LNScope becomes an interface that includes matches().
 * *
 * *
 * *   Logical Neighborhoods Routing - Java Version
 * *                                
 * *
 * *   This program is free software; you can redistribute it and/or
 * *   modify it under the terms of the GNU General Public License
 * *   as published by the Free Software Foundation; either version 2
 * *   of the License, or (at your option) any later version.
 * *
 * *   This program is distributed in the hope that it will be useful,
 * *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * *   GNU General Public License for more details.
 * *
 * *   You should have received a copy of the GNU General Public License
 * *   along with this program; if not, you may find a copy at the FSF web
 * *   site at 'www.gnu.org' or 'www.fsf.org', or you may write to the
 * *   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * *   Boston, MA  02111-1307, USA
 ***/

import java.io.Serializable;
import java.util.Collection;
import java.util.Vector;

/**
 * @author Luca Mottola <a href="mailto:mottola@elet.polimi.it">mottola@elet.polimi.it</a>
 *
 */
public class NeighborhoodMessage implements Serializable {

	private static final long serialVersionUID = 1L;

	private int senderId;

	private int originatorId;

	private long seqNumber;

	private Vector destinations;

	private byte hops;

	public NeighborhoodMessage(int id, long seqNumber) {

		this.hops = 0;
		this.seqNumber = seqNumber;
		this.originatorId = id;
	}

	public int getSenderId() {
		return senderId;
	}

	public long getSeqNumber() {
		return seqNumber;
	}

	public void setDestinations(Collection dests) {
		destinations = new Vector(dests);
	}

	public int getOriginatorId() {
		return originatorId;
	}

	public void setSenderId(int senderId) {
		this.senderId = senderId;
	}

	public byte getHops() {
		return hops;
	}

	public void setHops(byte hops) {
		this.hops = hops;
	}
}
